import request from '@/utils/request'

// 查询订单表列表
export function listShoporder(query) {
  return request({
    url: '/transaction/shoporder/list',
    method: 'get',
    params: query
  })
}

// 查询订单表详细
export function getShoporder(id) {
  return request({
    url: '/transaction/shoporder/' + id,
    method: 'get'
  })
}

// 新增订单表
export function addShoporder(data) {
  return request({
    url: '/transaction/shoporder',
    method: 'post',
    data: data
  })
}

// 修改订单表
export function updateShoporder(data) {
  return request({
    url: '/transaction/shoporder',
    method: 'put',
    data: data
  })
}

// // 删除订单表
// export function delShoporder(id) {
//   return request({
//     url: '/transaction/shoporder/' + id,
//     method: 'delete'
//   })
// }
// 删除订单表（逻辑删除）
export function delShoporder(id) {
  return request({
    url: '/transaction/shoporder/' + id,
    method: 'delete'
  })
}
